jQuery(document).ready(function() {
	//创建JQGRID表格
	
	var grid = $("#table1").ligerGrid({
        columns: [
                  { display: '单据编号', name: 'qkcode', width: 200 },
                  { display: '请款人', name: 'qkr', width: 180 },
                  { display: '部门', name: 'department', width: 170},
                  { display: '单据状态', name: 'billstatus', width: 170,
                	  render: function (item){
                		  var billStatus=item.billstatus;
                		  if(billStatus=="1"){
                			  return "完成";
                		  }
                		  if(billStatus=="0"){
                			  return "草稿";
                		  }
                	  }},
                  { display: '请款日期', name: 'qkrq', width: 170,
                	  render: function (item){
                		  var cdate=new Date(item.qkrq);
                		  return formatDate(cdate,"yyyy-MM-dd")
                	  }},
                  { display: '备注', name: 'remark', width: 170 }
                      ],  usePager: true,pageSize:30,
                      url : basic_Url+"/list.do",
                      width: "100%", height:"98%", checkbox: false,      
                      onDblClickRow : function (data, rowindex, rowobj){
                    	  edit(data);
                       }
                  });
	$("#pageloading").hide();
});

